package work;

public class Game {
    String hero;
    int life;
    String weapon;
    int ATK;
    String monster;
    int lifes;
    String form;
    public void hero() {
        System.out.println("我是英雄，我的基本信息我如下：");
        System.out.print("姓名："+hero+",生命值："+life);
    }
    public void weapon() {
        System.out.println("\n我是武器，我的基本信息如下：");
        System.out.println("姓名："+weapon+",攻击力："+ATK);
    }
    public void monster() {
        System.out.println("我是怪兽，我的基本信息如下：");
        System.out.println("姓名："+monster+",生命值："+lifes+"类型："+form);
    }
    public static void main(String[] args) {
        Game center = new Game();
        center.hero = "李小侠";
        center.life = 300;
        center.weapon = "死神镰刀";
        center.ATK = 12;
        center.monster = "小龟";
        center.lifes = 300;
        center.form = "潜水型";
        center.hero();
        center.weapon();
        center.monster();
    }
}
